/*
 * @Author: wangwenshuai 644586996@qq.com
 * @Date: 2022-11-07 10:30:47
 * @LastEditors: wangwenshuai 644586996@qq.com
 * @LastEditTime: 2022-11-07 14:49:20
 * @FilePath: \CarbonPccountingProject\carbon_accounting_project\src\store\modules\data.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
const data = {
    state: {
        stepsCurrent: 0,
        cycleId:null,
        fillData:[],
        basicInformation:null,
        result:null,
        deviceType:'desktop',


        // 
        slidingWindowDisplay:false, //滑窗隐藏显示
        loading:false,
    },
    mutations: {
        'SET_STEPS_CURRENT': (state, num) => {
            state.stepsCurrent = num
        },
        'SET_CYCLEID': (state, cycleId) => {
            state.cycleId = cycleId
        },
        'SET_FILLDATA': (state, fillData) => {
            state.fillData = fillData
        },
        'SET_BASICINFORMATION': (state, basicInformation) => {
            state.basicInformation = basicInformation
        },
        'SET_RESULT': (state, result) => {
            state.result = result
        },
        'SET_DEVICETYPE': (state, deviceType) => {
            state.deviceType = deviceType
        },
        'SET_SLIDINGWINDOWDISPLAY': (state, slidingWindowDisplay) => {
            state.slidingWindowDisplay = slidingWindowDisplay
        },
        'SET_LOADING': (state, loading) => {
            state.loading = loading
        },
    },
}
export default data